package com.blb.mapper;

import com.blb.pojo.Employee;

import java.util.List;

public interface EmployeeDAO {

    List<Employee> selectAll();

    /**
     * 通过姓名进行模糊查询
     * @param name
     * @return
     */
    List<Employee> selectEmployeesLikeName(String name);

    /**
     * 根据id查询员工
     * @param id
     * @return
     */
    Employee selectById(Long id);

    /**
     * 更新员工
     * @param employee
     */
    void updateEmployee(Employee employee);
}
